import Vue from 'vue'
import App from './App'
import store from './store'
import uView from '@/uni_modules/uview-ui'
import httpInterceptor from "./utils/http/config.request"
import basic_config from './utils/config'
import {
	jumpPage
} from "./utils/route/route"
import temp from "./components/common/wakin-list-temp/index"
import AMap from "./utils/amap"


Vue.config.productionTip = false
Vue.use(uView)

// import Vconsole from 'vconsole'
// let vConsole = new Vconsole()
// Vue.use(vConsole)
Vue.prototype.$store = store
Vue.prototype.$basic_config = basic_config
Vue.prototype.$jump = jumpPage
Vue.prototype.$MainColor = basic_config.MainColor
// 轻提示
Vue.prototype.$toast = basic_config.toast;
// 加载中
Vue.prototype.$loadToast = basic_config.loadToast;

//获取某年某月天数
Vue.prototype.$getDaysInMonth = (year, month) => {
	month = parseInt(month, 10);
	let temp = new Date(year, month, 0);
	return temp.getDate();
}

basic_config.setConfig();

App.mpType = 'app'


const app = new Vue({
	store,
	...App
})


Vue.use(httpInterceptor, app)

Vue.use(temp)
// Vue.use(AMap)


app.$mount()